﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//
using PerceptiveMCAPI;
using PerceptiveMCAPI.Types;
//

namespace PerceptiveMCAPI_Test
{
   public partial class show_listAbuseReports : System.Web.UI.UserControl
   {
      public void Display( listAbuseReportsOutput output )
      {
         this.Visible = true;
         // ------------------------------------------------
         lblHeader.Text = string.Format( "List: {0}, Abuse reports: {1}",
            output.inputParms.id, output.result.Count.ToString() );
         //
         gvReports.DataSource = output.result;
         gvReports.DataBind();
      }
   }
}